
//访问修饰符
class Animal {
  protected move(): string {
    return "我能跑"
  }
}


class Dog extends Animal {
  eat() {
    let result = this.move()
    return "我能吃" + result
  }

  private bark() {
    return "汪汪汪"
  }
}

let d1 = new Dog()
console.log(d1.eat())



// type type1 = [string, number]  
// type type2 = string[]